
<%@ include file="../confHeader.jsp" %>
<%@ include file="../mensagens.jsp" %>
<html>
<head>
	
</head>
<body>

 <html:form  action="produtoAction" method="POST" onsubmit="return true;">
 	<html:hidden property="idEspecProduto" value="${to.idEspecProduto}"/> 	
 	
   <div class='pageForm'>
      <div class='formTitle'>  			
  			<bean:message key="produto.entity"/>
      </div>
      <div class='formField'>
            <label><bean:message key="produto.codigo"/></label>: &nbsp;
            ${el:write('to.idEspecProduto',pageContext)}
        </div> 
                
        <div class='formField'>
            <label><bean:message key="produto.nome"/></label>: &nbsp;
            ${el:write('to.nome',pageContext)}
        </div>   
        
        <div class='formField'>
            <label><bean:message key="produto.descr"/></label>: &nbsp;
	             ${el:write('to.descricao',pageContext)}
        </div>       
        
         <div class='formField'>
            <label><bean:message key="grupo.entity"/></label>: &nbsp;     
                 ${el:write('to.subgrupo.pai.nome',pageContext)}
        </div>
        
         <div class='formField'>
            <label><bean:message key="subgrupo.entity"/></label>: &nbsp; 
         	   ${el:write('to.subgrupo.nome',pageContext)}
        </div>
        
        <hr size="1">
          <div class='formButton'> 
            <a onclick="javascript:alterar();" class="linkButton">  <bean:message key="app.button.update"/></a>          
         		&nbsp;  
      		<a onclick="javascript:remover();" class="linkButton">   <bean:message key="app.button.delete"/></a>          
         		&nbsp;
           	<a onclick="javascript:back()" class="linkButton">   <bean:message key="app.button.return"/></a> 
         </div>    
            
    </div>
    </html:form>
   
      
<script type="text/javascript">
 // <!--
   
  var action= '<html:rewrite page="/produtoAction.do"/>';
  var nForm =  'ProdutoForm';

 function remover(){	 
	  if(confirm('<bean:message key="app.prompt.confirm.delete"/>\n<bean:message key="msg.04.05"/>')){
		 executeForm(nForm, action, 'remover');
	 }	 
 }
 
  function alterar(){	 
	 executeForm(nForm, action, 'goAltualizar');
 }
 
  //-->
</script>
</body>
</html>
